﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace mBlog.Models
{
    public class Comment : Model
    {
        public long ID { get; set; }

        [Required(ErrorMessage = "Please input your name")]
        public string Author { get; set; }
        [Required(ErrorMessage="Please add your comment")]
        public string Content { get; set; }
        [Required(ErrorMessage = "Please input your email, and it will not be disclosured")]
        public string Email { get; set; }
        public string Site { get; set; }
        public string IP { get; set; }
        public DateTime CommentTime { get; set; }
        public bool IsSpam { get; set; }

        public Post Post { get; set; }
    }
}